{extend name="property/public/insidePageBase" /}
{block name="title"}添加订单{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form  layui-form-pane">

            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">充电桩名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="piles_id" id="piles_id_case" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">订单编号</label>
                        <div class="layui-input-block" id="piles_plan_show">
                            <input type="text" name="order_no" value="{$orderNo??''}"lay-verify="require" autocomplete="off" placeholder="请输入订单编号" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-row">
                <div class="layui-col-xs4">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">充电端口号</label>
                        <div class="layui-input-block">
                            <input type="text" name="port_no"  placeholder="请输入端口数量" autocomplete="off" class="layui-input" maxlength="2" oninput="value=value.replace(/[^\d]/g,'');lessNum(this)"/>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">购买时长</label>
                        <div class="layui-input-block">
                            <input type="text" name="work_time"  placeholder="请输入购买时长" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">消费金额</label>
                        <div class="layui-input-block">
                            <input type="text" name="pay_price"  placeholder="请输入消费金额" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs4">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">支 付 方 式</label>
                        <div class="layui-input-block">
                            <select name="pay_type">
                                <option value="">--请选择--</option>
                                <option value="balance">余额</option>
                                <option value="wechat">微信</option>
                                <option value="alipay">支付宝</option>
                                <option value="integral">积分</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">支付状态</label>
                        <div class="layui-input-block">
                            <select name="pay_status">
                                <option value="">--请选择--</option>
                                <option value="1">己支付</option>
                                <option value="2">已退款</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">充满自停</label>
                        <div class="layui-input-block">
                            <select name="full_auto_close">
                                <option value="1">开启</option>
                                <option value="2">关闭</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入备注说明" class="layui-textarea" name="remark"></textarea>
                </div>
            </div>

            <div class="layui-form-item layui-hide">
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form', 'layer','layCascader'], function () {
        var form = layui.form,layer = layui.layer,  $ = layui.$,layCascader = layui.layCascader;
        let piles_id_case = layCascader({
            elem: '#piles_id_case',
            clearable: true,
            value: {:request()->get('piles_id', 0)},
            options: {:json_encode($pilesData,JSON_UNESCAPED_UNICODE)}
        });
    });
</script>
{/block}